<?php
namespace Jhub1db\Repository;
 
use Doctrine\ORM\EntityRepository;
 
class Agent extends EntityRepository
{
    public function getAllOrdered()
    {
        $stmt = 'SELECT u FROM Jhub1db\Entity\Jhub1agent u ORDER BY u.orderi ASC';
        return $this->_em->createQuery($stmt)->getResult();
    }
}